#ifndef _GLOBAL_H
#define _GLOBAL_H

#include "lib.h"
#include "udp.h"

#ifdef UDP_GLOBALS
#define UDP_EXT
#else
#define UDP_EXT extern
#endif // SIM_GLOBALS

#ifdef TMS_GLOBALS
#define TMS_EXT
#else
#define TMS_EXT extern
#endif // TMS_GLOBALS

#ifdef BTM_GLOBALS
#define BTM_EXT
#else
#define BTM_EXT extern
#endif

UDP_EXT uint32 g_UDP_Velocity;
UDP_EXT uint32 g_UDP_WheelDiameter;
UDP_EXT uint32 g_UDP_rotationPulse;

UDP_EXT UDP_CcToSimTmsInfo_t udpRecvTmsInfo;
UDP_EXT UDP_SimToCcTmsInfo_t udpSendTmsInfo;

TMS_EXT SEM_ID udpRecvTmsSemID;  // cc send to pc sim
TMS_EXT SEM_ID udpSendTmsSemID;  // sim send to cc

BTM_EXT BOOL cdValidFlag;

#endif // _GLOBAL_H